Completed
Push — master ( b55981...62528b )
by refat
04:06
created

gulpfile.js ➔ style   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 6
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
const gulp = require('gulp');
2
const sass = require('gulp-sass');
3
4
const outputsSass = [
5
  '',
6
  'admin/',
7
  'admin/pages/',
8
  'website/',
9
  'website/pages/',
10
];
11
12
function style() {
13
  outputsSass.forEach(output => gulp
14
    .src(`sass/${output}*.scss'`)
15
    .pipe(sass())
16
    .on('error', sass.logError)
17
    .pipe(gulp.dest(`public/css/${output}`)));
18
}
19
20
exports.style = style;
21
    // console.log(`FROM => sass/${output}*.scss'`);
22
    // console.log(`TO   => public/css/${output}`);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
Unused Code introduced by
The expression has no effects. Consider removing it.
Loading history...
Bug introduced by
The variable output seems to be never declared. If this is a global, consider adding a /** global: output */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...